//
//  HYLocationManager.h
//  HYNeiHan
//
//  Created by 上官惠阳 on 16/9/25.
//  Copyright © 2016年 上官惠阳. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AMapLocationKit/AMapLocationKit.h>

typedef void(^HYLocationManagerDidUpdateLocationHandle)(CLLocation *newLocation, NSString *newLatitude, NSString *newLongitude);

@interface HYLocationManager : NSObject
+ (instancetype)sharedManager;

/** 开始定位*/
- (void)startSerialLocation;
// 停止定位
- (void)stopSerialLocation;

/** 更新定位回调*/
- (void)setUpLocationManagerUpdateLocationHandle:(HYLocationManagerDidUpdateLocationHandle)updateLocationHandle;

/** 是否可以定位*/
@property (nonatomic, assign) BOOL canLocationFlag;

/** 是否有经纬度*/
@property (nonatomic, assign) BOOL hasLocation;
@end
